package com.fuze.navi.domain.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * @author sepc_
 * @date 3/19/2021 15:35
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class CoordinateParamVO implements Serializable {
    private static final long serialVersionUID = -8917624627502838735L;

    /**
     * 目的地的坐标信息的自增id
     */
    @Pattern(regexp = "\\d+", message = "destinationId只能是数字")
    @NotNull(message = "destinationId不能为空")
    private Long destinationId;

    /**
     * 用户所在坐标位置的经度
     */
    @NotBlank(message = "用户所在坐标的纬度不能为空")
    private String originLon;

    /**
     * 用户所在坐标位置的纬度
     */
    @NotBlank(message = "用户所在坐标的经度不能为空")
    private String originLat;

}
